package zuoye20;

public class Visitor {
    Integer age;

   public String ticket(Integer age){
           if (age<=10 && age>0){
               return "请购买儿童票";
           } else if (age>10 && age<60) {
               return "请购买成人票";
           }else if (age>=60 && age<=110){
               return "请购买老人票";
           }
           else {
              return  "年龄不符合规则！";
           }
   }
}
